<template>
  <div class="login">
    <div class="logo-form">
      <div class="logo"></div>
      <div class="title">登录</div>
      <div class="text">没有账户？ <span>注册</span></div>
      <div class="login-box">
        <input type="text" placeholder="请输入手机号" class="input" />
        <div class="input-with-button">
          <input type="text" placeholder="请输入验证码" class="input" />
          <button class="send-btn">发送验证码</button>
        </div>
        <button class="login-btn">登录</button>
      </div>
    </div>
  </div>
</template>

<style scoped lang="less">
.login {
  background-image: url("@/assets/img/login-bg.jpg");
  background-size: 100% 120%;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;

  .logo-form {
    width: 353px;
    height: 454px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 1);
    position: absolute;
    right: 250px;
    top: 50%;
    transform: translateY(-50%);
    padding: 50px 50px 124px;

    .logo {
      background: url(@/assets/img/gray-logo.png);
      width: 120px;
      height: 27px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      margin-bottom: 24px;
    }

    .title {
      font-size: 24px;
      font-weight: bold;
    }

    .login-box {
      margin-top: 30px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      font-family: "Arial", sans-serif;
    }

    .input {
      padding: 0 12px;
      height: 32px;
      line-height: 32px;
      border: 1px solid #e0e0e0;
      border-radius: 4px;
      font-size: 12px;
      width: 100%;
      box-sizing: border-box;
    }

    .input-with-button {
      display: flex;
      align-items: center;
      position: relative;
    }

    .input-with-button .input {
      flex: 1;
    }

    .send-btn {
      position: absolute;
      right: 10px;
      background: none;
      border: none;
      color: #1976d2;
      font-size: 12px;
      cursor: pointer;
    }

    .login-btn {
      height: 32px;
      line-height: 32px;
      background-color: #0052cc;
      color: white;
      border: none;
      border-radius: 2px;
      font-size: 12px;
      text-align: center;
      cursor: pointer;
      margin-top: 20px;
    }

    .login-btn:hover {
      background-color: #003c99;
    }

    input:focus-visible {

      outline: none;
    }
  }
}
</style>
